const commonBehaviors = require('../commonBehaviors.js');
Component({
  behaviors: [commonBehaviors],
  properties: {
    show: {
      value: false,
      type: Boolean
    }
  },
  methods: {
    backHome() {
      let pages = getCurrentPages();
      if (pages.length == '1') {
        xhs.navigateTo({
          url: '/pages/Engine/engine'
        });
      } else {
        xhs.navigateBack({
          delta: 1
        });
      }
    },
    defaultHandle() {}
  }
});